package com.wuwei.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @description: CommonResult <br>
 * @date: 2021/2/5 17:24 <br>
 * @author: wuwei666 <br>
 * @version: 1.0 <br>
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class CommonResult<T> implements Serializable {
    private Integer code;
    private String message;
    private T data;

    public CommonResult(Integer code, String message){
        System.out.println("调用了有参构造");
        this.code = code;
        this.message = message;
        this.data = null;
    }
}
